﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchRoleOrganizationMappingByRole.ascx.vb"
    Inherits="WebForm_ManageRole_SearchRoleOrganizationMappingByRole" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="
    display: none" Width="500" SkinID="DragPanel">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" meta:resourcekey="Page" SkinID="title" Visible="true"></asp:Label>
    </div>
    <br />
    <table>
        <tr>
            <td>
                <asp:CheckBoxList ID="chl" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td align="left">
                <table>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblOrganizationName" runat="server" meta:resourcekey="lblOrganizationName"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtOrganizationName" runat="server" ></asp:TextBox>
                        </td>
                        <td align="left">
                            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" ></asp:Button>
                        </td>                                                
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <My:MyGridView ID="gv" runat="server" SkinID="pager" DataKeyNames="OrganizationID,VOrganizationID"
                    meta:resourcekey="gv" Visible="true">
                    <Columns>
                        <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfOrganizationName" />
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfAddAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllAdd" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkAdd" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfEditAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllEdit" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkEdit" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>                                                                        
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfDeleteAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllDelete" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkDelete" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>                                                                                                
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfQueryAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllQuery" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkQuery" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfPrintAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllPrint" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkPrint" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>                        
                        <asp:TemplateField ItemStyle-HorizontalAlign="center">
                            <HeaderTemplate>
                                <%#Me.GetLocalResourceObject("bfAdminAccess.HeaderText")%>
                                <asp:CheckBox ID="chkAllAdmin" runat="server" AutoPostBack="true" OnCheckedChanged="chkAll_CheckedChanged"
                                    Checked="true" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="chkAdmin" runat="server" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </asp:TemplateField>                        
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" />
                <asp:Button ID="btnOK" runat="server" meta:resourcekey="btnOK" />
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnOK" PopupDragHandleControlID="panel1" />
